<script setup>
import { ref } from 'vue';

// 假设有一些设置选项
const darkMode = ref(false);
const notifications = ref(true);
const language = ref('中文');
</script>

<template>
    <el-card class="settings-card">
        <h2 class="settings-title">设置</h2>
        <div class="settings-section">
            <h3 class="section-title">外观</h3>
            <el-switch v-model="darkMode" active-text="深色模式" inactive-text="浅色模式"></el-switch>
        </div>
        <div class="settings-section">
            <h3 class="section-title">通知</h3>
            <el-switch v-model="notifications" active-text="开启" inactive-text="关闭"></el-switch>
        </div>
        <div class="settings-section">
            <h3 class="section-title">语言</h3>
            <el-select v-model="language" placeholder="请选择语言">
                <el-option label="中文" value="中文"></el-option>
                <el-option label="English" value="English"></el-option>
            </el-select>
        </div>
    </el-card>
</template>

<style scoped lang="scss">
.settings-card {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.settings-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.settings-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #555;
}

// 添加一些额外的样式来提高界面的美观性
.el-switch__core {
    width: 60px !important;
}

.el-select {
    width: 100%;
}

.el-card {
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}
</style>
